//
//  MainFuncButtonView.swift
//  MakeMoney
//
//  Created by Fan ZhiQiang on 2025/3/26.
//

import SwiftUI

struct MainFuncButtonView: View {
    
    let title: String 
    var closure: () -> Void
    
    
    var body: some View {
        Button {
            closure()
        } label: {
            RoundedRectangle(cornerRadius: 4)
                .frame(minWidth: 60, idealWidth: 60, maxWidth: 60, minHeight: 60, idealHeight: 60, maxHeight: 60)
                .overlay {
                    Text(title)
                        .foregroundStyle(.white)
                }
        }
    }
}

#Preview {
    MainFuncButtonView(title: "Test") {
        
    }
}
